<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<s:fielderror/>

<p class="listName"><s:text name="serialInterface.list.serialInterfaces" /></p>
<s:if test="serialInterfaces.size > 0">
	<div class="list">
		<s:iterator value="serialInterfaces">
			<div id="serialInterface_<s:property value="id"/>" class="listItem">
				<div class="itemProperty">
					<s:property value="port" />
				</div>
				<div class="itemProperty">
					<s:property value="baudrate" />
				</div>
				<div class="itemProperty">
					<s:property value="databits" />
				</div>
				<div class="itemProperty">
					<s:property value="stopbits" />
				</div>
				<div class="itemProperty">
					<s:property value="parity" />
				</div>
				<div class="itemProperty">
					<s:property value="type" />
				</div>
				<div class="itemProperty">
					<s:property value="active" />
				</div>
				<div class="itemAction">
					<s:url id="removeUrl" action="removeSerialInterface">
						<s:param name="id" value="id" />
					</s:url>
					<s:a href="%{removeUrl}" theme="ajax" targets="serialInterfaces" notifyTopics="/serialInterfacePopulate"><s:text name="serialInterface.list.item.remove" /></s:a>
					<s:a id="si_%{id}" theme="ajax" notifyTopics="/editSerialInterface"><s:text name="serialInterface.list.item.edit" /></s:a>
				</div>
			</div>
		</s:iterator>
	</div>
</s:if>